{% extends 'emptybase.html' %}

{% block jsblock %}
<script type="text/javascript">   

<!--   
function go(t,url){   
//t设置跳转时间：秒 ； url设置跳转网址
    document.getElementById("jumptext").innerHTML="<div id=text>本页将在<strong id=tt></strong>后，跳转至：<span id=link></span></div>";   
    document.getElementById("link").innerHTML="<a href="+url+">"+url+"</a>";   
    $(t,url);   
}   

function $(t,url){   
    ta = t-1;
    redirecting = false;
    tb = t+"000";   
    d = document.getElementById("tt");   
    d.innerHTML=t;   
    window.setInterval(function(){go_to(url);},1000);   //设置监听函数
}   

function go_to(url){   //如果时间到了就进行跳转
    d.innerHTML=ta--;   
    if(ta<0 && !redirecting){
        redirecting = true;
        document.write("正在跳转至：<a href="+url+">"+url+"</a>");   
        window.location.href = url;
    }   
}   

//-->   

</script>  

{% endblock %}
<!--end of js block-->

{% block bodyblock %}
<div id="jumptext">{{thedesp}}</div>

<script type="text/javascript">  
    go(10,"{{ theurl }}");
</script>  
{% endblock %}


